package com.student;

public class Student {
    //学号
    private String id;

    //姓名
    private String name;

    //数学成绩
    private int mathScore;

    //英语成绩
    private int englishScore;

    //语文成绩
    private int chineseScore;

    public Student() {

    }

    public Student(String id, String name, int mathScore, int englishScore, int chineseScore) {
        this.id = id;
        this.name = name;
        this.mathScore = mathScore;
        this.englishScore = englishScore;
        this.chineseScore = chineseScore;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMathScore() {
        return mathScore;
    }

    public void setMathScore(int mathScore) {
        this.mathScore = mathScore;
    }

    public int getEnglishScore() {
        return englishScore;
    }

    public void setEnglishScore(int englishScore) {
        this.englishScore = englishScore;
    }

    public int getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(int chineseScore) {
        this.chineseScore = chineseScore;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", mathScore=" + mathScore +
                ", englishScore=" + englishScore +
                ", chineseScore=" + chineseScore +
                '}';
    }
}
